let arr = ['../img/f5.jpg', ' ../img/f6.jpg']
let insane = document.getElementsByClassName('insane');
let insaneImg = document.getElementsByClassName('insane-img')[0];
let imgInsane = document.getElementsByClassName('img-insane')[0]
for (let i = 0; i < insane.length; i++) {
    insane[i].onclick = function () {
        let insaneimg = insaneImg.firstElementChild
        let n = insane[i].checked
        if (n) {
            lucky[i].checked = false
            insaneimg.src = arr[0];
            imgInsane.innerHTML = '疯狂阅读'
            insaneImg.style.display = 'block'
        }
    }
}
let lucky = document.getElementsByClassName('lucky')
for (let i = 0; i < lucky.length; i++) {
    lucky[i].onclick = function () {
        let insaneimg = insaneImg.firstElementChild;
        let n = lucky[i].checked
        if (n) {
            insane[i].checked = false
            insaneimg.src = arr[1];
            imgInsane.innerHTML = '幸福人生'
            insaneImg.style.display = 'block'
        }
    }
}